/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nl.hro.mobiqueen.ui;

/**
 *
 * @author LaptopFernandes01
 */
public class EGenre {

    public static enum Genre {
        DANCE,POP,HIPHOP,ROCK, 
        NEDERLANDS
    }

    public static Genre StringToEGenre(String genre)
    {
        if(genre.equals("rock")){
            return Genre.ROCK;
        }

        if(genre.equals("nederlands")){
            return Genre.NEDERLANDS;
        }

        if(genre.equals("hiphop")){
            return Genre.HIPHOP;
        }

        if(genre.equals("dance")){
            return Genre.DANCE;
        }

        if(genre.equals("pop")){
            return Genre.POP;
        }

        return null;
    }

}
